package com.hundsun.yr.universal.p2p.interactor.impl;

import com.hundsun.yr.universal.p2p.interactor.base.RequestParmarsHeadersInteractor;
import com.hundsun.yr.universal.p2p.listener.BaseMultiLoadedListener;
import com.hundsun.yr.universal.p2p.utils.VolleyRequest;

import java.util.HashMap;

/**
 * Created by xx on 2017/4/17.
 */
public class StringRequestPostParamsHeaderInteractorImpl implements RequestParmarsHeadersInteractor {

    private BaseMultiLoadedListener<String> loadedListener = null;
    private VolleyRequest request = null;

    public StringRequestPostParamsHeaderInteractorImpl(BaseMultiLoadedListener<String> loadedListener) {
        this.loadedListener = loadedListener;
    }

    @Override
    public void getRequestData(String task_name, String url, int event_tag, HashMap<String, String> params, HashMap<String, String> header) {
        request = new VolleyRequest(true);
        request.StringRequestPost(task_name, url, event_tag, params, header, loadedListener);
    }
}
